package apiday02.collection;

import java.util.LinkedList;

public class LinkedListDemo {
    public static void main(String[] args) {
        LinkedList<Integer> list = new LinkedList<>();
        list.add(1000);
        list.add(230);
        list.addFirst(450);
        list.addLast(350);
        System.out.println("list:"+list);

        list.removeFirst();
        System.out.println("list:"+list);
        list.removeLast();
        System.out.println("list:"+list);

    }
}
